#!/bin/bash

case "$1" in
	start)
		mplayer /home/gibo/piksla/sounds/start_tv.wav -quiet &
		mythfrontend
	;;
	
	stop)
		killall mythfrontend.real
	;;
	
	restart)
		killall mythfrontend.real
		mplayer /home/gibo/piksla/sounds/start_tv.wav -quiet &
		mythfrontend
	;;
	
	*)
		echo "Usage: $N {start|stop|restart}" >&2
		exit 1
	;;
esac

exit 0